.feed-grid {
  align-items: start;
  display: grid;
  gap: get-size(400);
  grid-template-columns: 1fr;
  justify-content: center;
  justify-items: center;

  @include media-query('md') {
    gap: get-size(500);
    grid-template-columns: repeat(auto-fit, $blog-card-size);
  }

  filtered-element {
    width: 100%;
  }
}

.feed-card {
  border: 1px solid var(--color-hairline);
  break-inside: avoid-column;
  margin-left: auto;
  margin-right: auto;
  max-width: $blog-card-size;
  padding-top: 0;

  @media screen and (min-width: 992px) and (max-width: 1230px) {
    max-width: 100%;
  }
}

.feed-card__source {
  background-color: var(--color-code-bg);
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}

.feed-card__thumbnail {
  img {
    height: 100%;
  }

  a {
    aspect-ratio: 1.57/1;
  }
}
